#include "StreamServer.h"
#include "AlprThread.h"
#include "msg.h"


AlprThread::AlprThread():OSThread()
{
    
}

AlprThread::~AlprThread()
{

}

void AlprThread::Initialize(StreamServer* pServer)
{
    m_pStreamServer = pServer;
    Start();
}
void AlprThread::Entry()
{
    char buf[1024]={0};
    memcpy(buf,"hello\nworld",11);
    while(1)
    {
        OSThread::Sleep(500);
        m_pStreamServer->SendToClient(M_SendParameter,buf,11);
    }
}
